from tools import all_flow_ILAE_1422
from global_parameter import ip, port, username, DB_NAME

channel_3v0_scene1 = [
    "1, 1, 1, 1, '1', 5, '1', 2, '2023-03-23 15:31:08', NULL, '', 15, '', '1', NULL, NULL, NULL",
    "2, 1, 2, 10, '10', 5, '1', 2, '2023-03-23 15:31:08', NULL, '', 15, '', '1', NULL, NULL, NULL",
    "3, 1, 3, 100, '100', 5, '1', 2, '2023-03-23 15:31:08', NULL, '', 15, '', '1', NULL, NULL, NULL"]

no_group_3v0 = [
    "1, 1, 5, 1",
    "1, 10, 5, 1",
    "1, 100, 5, 1"]

v_arg_3v0_gao_3_bing = [8, 0, False, False, False,
                        5, 3, False, False, False,
                        4, 0, False, False, False,
                        3, 0, False, False, False]

algo_scene = [
    "4, '1', '1', '1,3', '0', '', '0', NULL, '2023-04-14 11:44:50', NULL, NULL, NULL, NULL, NULL, 7, 14, 7, 14, '0', '0', '1'"]

# ILAE-1422 接线错误-单通道逆向序_非翻转场景相位调整触发及恢复
all_flow_ILAE_1422(ip, DB_NAME, v_arg_3v0_gao_3_bing, "ILAE-1422", channel_3v0_scene1,
                   no_group_3v0, algo_scene, [150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150],
                   time_data=[-25, 70])
